from rest_framework.permissions import IsAuthenticated
from rest_framework.request import Request
from rest_framework.response import Response
from utils.base import BasePageNumberPagination
from apps.reports.filters import ReportFilter
from apps.reports.models import Report
from apps.reports.serializers import ReportSerializer
from utils.base_view import BaseModelViewSet


class ReportViewSet(BaseModelViewSet):
    serializer_class = ReportSerializer
    queryset = Report.objects.all()
    permission_classes = [IsAuthenticated]
    pagination_class = BasePageNumberPagination
    filterset_class = ReportFilter

